package com.itshizhan.designpattern.factory_method.idcard;

import com.itshizhan.designpattern.factory_method.framework.Product;

/**
 * ConcreteProduct, 具体的产品类
 * 决定了具体的产品，但不负责生产
 */
public class IDCard extends Product {
    private String owner;

    public IDCard(String owner) {
        System.out.println("制作" + owner + "的ID卡。");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "的ID卡。");
    }
    public String getOwner(){
        return owner;
    }
}
